GET /api/learn/exams/:id
Exam Info

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Success response body

{
  "id": 15,
  "finished": false,
  "exam_results": null,
  "s3_key": null,
  "actionable": {
    "id": 1,
    "title": "Exam",
    "questions_length": 40,
    "questions": [
      {
        "id": 13,
        "body": "Determining your ______ is the first step to creating an effective social media strategy.",
        "options": [
          {
            "id": 39,
            "body": "Goals"
          },
          ...
        ]
      },
      ...
    ]
  }
}

Params

Param name Description
id
required

Validations:

  • Must be a Integer


PUT /api/learn/exams/:id
Update exam progress

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Request body example

{
  examResult: {
    "13": [39],
    "14": [43, 44],
    ...
  }
}

Success response body

{
  "exam_results": 2.5
}

Params

Param name Description
id
required

Validations:

  • Must be a Integer

examResult
required

Validations:

  • Must be a Hash

examResult[question_id]
required

Key must be a Integer. See request body example

Validations:

  • Must be an array of Integer


PUT /api/learn/exams/:id/attach_certificate
Attach exam certificate

Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Request body example

{
  certificate: Base64 string
}

Success response body

{
  "id": 15,
  "finished": false,
  "s3_key": null
}

Params

Param name Description
id
required

Validations:

  • Must be a Integer

certificate
required

Validations:

  • Must be a String